/*
 * Copyright (c) 2008, Xiong Yingfei, the University of Tokyo
 * All rights reserved.
 */
package ac.jp.u_tokyo.SyncLib.language.factories;

import ac.jp.u_tokyo.SyncLib.Sync;
import ac.jp.u_tokyo.SyncLib.SyncFactory;
import ac.jp.u_tokyo.SyncLib.dictionaries.KeyFactory;
import ac.jp.u_tokyo.SyncLib.dictionaries.MatchingDictMapCombinator;

public class DictMapCombinatorFactory implements SyncFactory
{
	protected KeyFactory[] _factories;
	protected SyncFactory _inner;
	protected int _nonDictCount;

	public DictMapCombinatorFactory(KeyFactory[] factories, SyncFactory inner, int nonDictCount)
	{
		super();
		_factories = factories;
		_inner = inner;
		_nonDictCount = nonDictCount;
	}



	public Sync create()
	{
		return new MatchingDictMapCombinator(_inner, _factories, _nonDictCount);
	}

}
